package com.yf.controller;

import com.yf.feginApi.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Yang_Vincent
 * @Date 2020/7/23 14:51
 */
@RestController
public class TestController {

    @Autowired
    private Api api;

    @GetMapping("/say/{name}")
    public String getForProvider(@PathVariable("name")String aa){

        return api.getInfo(aa);
    }
}
